package ee122Networking;

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;

public class RouterReceiverThread extends Thread {
	static int _PORT_NUMBER = 9000;
	protected DatagramPacket[] internalStorage;
	protected DatagramSocket socket;
	public RouterReceiverThread () {
		internalStorage = new DatagramPacket[64];
	
		try {
			socket = new DatagramSocket(_PORT_NUMBER);
		} catch (SocketException e) {
			System.out.println("Socket could not be opened on port " + _PORT_NUMBER);
			e.printStackTrace();
		}
		System.out.println("Router socket opened. Listening on port " + socket.getLocalPort());
	}
	
	public void run() {
		
	}
}
